/*
 *  Created on: 2011
 */

#include "Store.h"
#include "StoreTest.h"

#include <cassert>
#include <iostream>

StoreTest* StoreTest::create() {
	return new StoreTest;
}

void StoreTest::destroy(StoreTest** ppInstance) {
	delete *ppInstance;
	*ppInstance = 0;
}

void StoreTest::run() {
	std :: cout << "run!" << std :: endl;
	testInstanceCreate();
}

void StoreTest::testInstanceCreate() {
	Store* pInstance = Store :: create();
	assert(pInstance);
	assert(pInstance->empty());
	assert(pInstance->size() == 0);
	Store :: destroy(&pInstance);
	assert(!pInstance);
	std :: cout << "testInstanceCreate PASS" << std :: endl;
}



StoreTest::StoreTest() {
}

StoreTest::~StoreTest() {
}

